package com.rowline.designpatterndemo.builderPatter;

/**
 * @author: luoting
 * @date: 2019/6/11 16:23
 * @description:  指挥者
 */
public class KFCMealWaiter {

    private MealBuiler mealBuiler;

    public void setMealBuiler(MealBuiler mealBuiler) {
        this.mealBuiler = mealBuiler;
    }

    public Meal makeDinner(){
        mealBuiler.buildDrink();
        mealBuiler.buildFood();
        return mealBuiler.getMeal();
    }
}
